<template>
  <div>

  </div>
</template>
<script>
export default {
  layout: 'blank',
  middleware: async ({store, redirect}) => {
    let res = await store.dispatch('api/exit')
    if (res.status === 200 && res.data && res.data.code === 0) {
      location.href = '/'
    }
  }
}
</script>